All Questions
Tagged with asp.net-mvc-web-apientity-framework
6 questions
1vote
2answers
2kviews
Should an ASP.NET Web API application use Entity Framework in the API controllers?
Im a bit confused about what is best practice when working with Entity Framework and ASP.NET Web API. I am working on a project that contains a iOS/Android app and an API the app will use to ...
1vote
2answers
1kviews
Connect to different database based on URL
I am developing a SAAS application where : A single web application is hosted in IIS which will serve to multiple companies and each company will have its own database. The web application and ...
0votes
2answers
4kviews
Entity framework vs pure ado .net in calling stored procedure in an enterprise project
There is an enterprise project, which all the business implemented in databases and in the stored procedures, and web API is just like a light wrapper which get the request and deliver it to proper ...
2votes
1answer
3kviews
What is a good technique for supporting sorting and filtering with a REST WebAPI
I'm in the process of developing an ASP.NET Core WebAPI that uses EntityFramework to access the datastore. One of the things we need to support is sorting and filtering. I'm assuming that the HTTP ...
3votes
1answer
793views
Which is more secure for the DB, Web API or MVC with repository pattern & EF?
I am 1 of 3 developers. The other 2 use Web API and angular to build web apps. I prefer ASP MVC with a repository and EF. The stated argument is that a service is more secure when accessing the ...
1vote
1answer
651views
Is it feasible to change model relationship mappings and properties in Entity Framework CodeFirst at runtime?
Here's the situation. I have an enterprise application that uses EF Codefirst to map POCOs to an existing database. This has been working fine so far. In fact I would say that it's been working really ...